<#include "/WEB-INF/view/inc/inc.html"/>
<@html qmask=0>
<script type="text/javascript" src="${base}/include/in.js"></script>
<div class="container">
    <div class="row">
        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
            <div class="clearfix">
                <h4>
                    <ol class="breadcrumb">
                        <li>团队[${teamname}]成员</li>
                        <li class="active"><@bsbutton id="plusbtn" size='xs' icon='plus' class='editbtn'/></li>
                    </ol>

                </h4>

                <@bsuls lis=listmyul icons='heart,info-sign,eye-open' />
            </div>

        </div>
        <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
            <div class="jumbotron" style="padding: 20px;">
                <h2>大家的项目</h2>

                <p style="margin:0;font-size: 15px;">
                    项目就是，长期的一个目标和具体的执行计划。<br>
                    可以关注，删除，查看进度哦<br>
                    记得分享监督。
                </p>
            </div>

        </div>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function () {
        $("#myNav").affix({
            offset: {
                top: 125
            }
        });

        var commentfunc = function (){
            ci.confirm("确定加入吗？",function(){
                //todo 发起流程

                var data = {"row.y_team_id":'${teamid}',"row.y_team_user_type":'1'};
                data["row.ucenter_user_id"] = "${currentid}";
                data["row.ucenter_user_name"] = "${currentname}";
                data["row.id"] = "";
                //保存数据，回调函数发起流程
                $.savey("teamruser",data,true,function(result){
                    wfci.debug(result);
                    var datas = {};//拼装数据
                    datas["wfname"] = "inteam";//流程名称 *，name
                    datas["sourcekey"] = "t_y_teamruser-"+result.object.id;//流程标识，建议表明+id
                    datas["title"] = "${currentname}加入[${teamname}]的申请";//申请标题
                    datas["currentid"] = "${currentid}";//提交人
                    alert(0);
                    wfci.ajax("/wf/submitwf", datas, function (result) {//提交流程
                        wfci.debug(result);
                        wfci.localurl("/");//返回首页
                    });
                });
            });
        };

        $("#plusbtn").kq_bind("click",commentfunc,{'title':"加入"});

        var dddddfunc =function (){
            alert($(this).parent().attr("id"));
            var data = {};
            data["ids"] = $(this).parent().attr("id");
            data["ids1"] = "ddd";
            data["ids2"] = {"dd":1,"ss":"222rr","12":[1,2],"obj":{a:1,b:2,c:3,d:4,f:5,g:6,h:7,i:8,j:9,k:10,l:11}};
            data["ids3"] = [1,2,3];

            ci.debug(data);
        };

        $(".heartclass").kq_bind("click",dddddfunc,{'title':"参与"});
        $(".info-signclass").kq_bind("click",dddddfunc,{'title':"详情"});
        $(".eye-openclass").kq_bind("click",dddddfunc,{'title':"关注"});

    });



</script>
<@backtotop/>
</@html>
